package com.zuxia.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuxia.dao.impl.DepartDao;
import com.zuxia.entity.Depart;
import com.zuxia.service.IDepartService;

@Service("departService")
public class DepartService implements IDepartService{
	@Resource(name="departDao")
	private DepartDao departDao;
	
	public List<Depart> findAll() {
		return departDao.findAll();
	}

	@Override
	public String svaeDepart(Depart depart) {
			return departDao.saveDepart(depart);
	}
	
	public String updateDepart(Depart depart) {
			return departDao.updateDepart(depart);		
	}

	@Override
	public String deleteDepart(Depart depart) {			
			return departDao.deleteDepart(depart);
	}

}
